Description=guacamole
After=network.target jumpserver.service
Wants=jumpserver.service

[Service]
Type=forking

Environment="JUMPSERVER_SERVER=http://127.0.0.1:{{ jms_port }}"
Environment="JUMPSERVER_KEY_DIR=/config/guacamole/keys"
Environment="GUACAMOLE_HOME=/config/guacamole"
Environment="BOOTSTRAP_TOKEN={{ jms_bootstrap_token }}"
Environment="JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom -D"

PIDFile={{ tomcat_home }}/tomcat.pid
ExecStart=/config/tomcat8/bin/startup.sh
ExecReload=
ExecStop=/config/tomcat8/bin/shutdown.sh

[Install]
WantedBy=multi-user.target
